Next | Prev | Up | Top | Contents | Index

Network Inventory Entries

When a device driver is initialized, it can install an entry in the system hardware inventory (see "Creating an Inventory Entry"). It is a good idea for a network driver to do this, because the netsnoop program relies on hardware inventory entries. After successfully initializing, a network device driver should call add_to_inventory() with the following five parameters (see sys/invent.h):

class INV_NETWORK
type The packet type, for example INV_NET_ETHER. See sys/invent.h for the possible "types for class network" list.
controller The kind of network controller from the "controllers for network types" list in sys/invent.h.
unit Any distinguishing number for this device. The hinv command does not decode this field.
state Any characteristic number for this device. The hinv command does not decode this field.


Next | Prev | Up | Top | Contents | Index